package com.wf.ew.orderB.biz;

import com.wf.ew.common.PageResult;
import com.wf.ew.system.model.User;
import com.wf.ew.orderB.model.Customer;
import org.apache.poi.ss.formula.functions.T;
import java.util.List;

/**
 *
 * 数据层接口
 * @author : Doman
 * @date : 2020-04-13 13:56:30
 * @version ：1.0
 */
public interface CustomerBiz {

	/** 获取实体类表格
	 * @param page
	 * @param customer
	 * @return
	 */
	public String list(PageResult<T> page, Customer customer, User loginUser);
	
	/**
	 * 获取实体类表格
	 * @param customer
	 * @return
	 */
	public List<Customer> list(Customer customer, User loginUser);

	/**
	 * 获取实体类表格
	 * @return
	 */
	public List<Customer> customerListAll();

	/**
	 * 根据Id查询实体类
	 * @param customer
	 * @return
	 */
	public Customer getById(Customer customer);
	
	/**
	 * 保存实体类
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public boolean add(Customer customer, User loginUser);
	
	/**
	 * 修改实体类
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public boolean update(Customer customer, User loginUser);
	
	/**
	 * 删除实体类
	 * @param customer
	 * @param loginUser
	 * @return
	 */
	public boolean delete(Customer customer, User loginUser);

}
